<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap.min.css">
	<link rel="stylesheet" href="__PUBLIC__/Admin/css/adindex.css">
</head>
<body>
	<div class="panel panel-default">
		<div class="panel-heading">
	        <h3 class="panel-title" id="M2" style="display: block;float:left"><b>我的游记</b></h3>&nbsp;&nbsp;
	        <form class="form-inline" style="float: right">
		        <div class="row"> 
		            <div class="input-group" style="margin-right:30px">
		               	<input type="text" class="form-control">
		                <span class="input-group-btn">
		                    <button class="btn btn-default" type="button">go!</button>
		                </span>
		            </div><!-- /input-group -->
		        </div><!-- /.row -->
		    </form>
		    <br>
		    <br>
	    </div>
	  	<if condition="$myTravles eq null">
		<div class="row">	
			<div class="media" style="height:80px;padding:0 23%">
		    	<h3><b>没有游记哦!&nbsp;&nbsp; 
		   		<span class="glyphicon glyphicon-hand-right"></span>
		   		<a href="">速度开启我的游记历程</a></b></h3>
			</div>
		</div>
		<else/>
			<foreach name="myTravles" item="myt">
		    <div class="col-sm-6 col-md-3" >
		        <div class="thumbnail">
		            <img src="{$myt['img_path']}" style="width:233px;height:115px">
		            <div class="caption">
		                <h3 style="width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;">{$myt['title']}</h3>
		                <p style="text-indent:2em;height:58px;overflow:hidden;text-overflow: ellipsis;
	                        display:-webkit-box; -webkit-line-clamp:3;-webkit-box-orient:vertical;">{$myt['content']}
	                    </p>
		                <p style="float:right">
		                	<a class="btn btn-primary btn-xs" role="button" href="{:U('Index/read',['id'=>$myt['id']])}" target="_top">查看</a>&nbsp;&nbsp;
		                	<a class="btn btn-primary btn-xs" role="button">评论数</a><if condition="$myt['comnum'] gt 99">99+<else/>{$myt['comnum']}</if>&nbsp;&nbsp;
		                	<a class="btn btn-primary btn-xs" role="button">点赞</a><if condition="$myt['clicknum'] gt 99">99+<else/>{$myt['clicknum']}</if>
	       				</p><br>
		            </div>
		        </div>
		    </div>
			</foreach>
		    <div class="media" style="margin-bottom: 350px;"></div>
			<ul class="pagination" style="float:right;margin-right:40%;margin-top:-50px">
				{$page}
			</ul>
		</if>
	</div>
</body>
<script src="__PUBLIC__/Admin/js/jquery.min.js"></script>
<script src='__PUBLIC__/Admin/js/bootstrap.min.js'></script>
</html>
